#include "sampler2.h"

#include <math.h>

using namespace SPLINTER;

DenseVector Sampler2::operator()(DenseVector theta) const
{
    double theta0 = theta(0);
    DenseVector X(2);

    X(0) = sqrt(3) * cos(theta0);
    X(1) = 2 * sqrt(3) * sin(theta0) / 3 + 2 * sqrt(sqrt(3) * fabs(cos(theta0))) / 3;
    return X;
}
